<#include "/layout/layout.ftl"/>  

<#macro content>
<title>找回密码</title>
<style type="text/css" >
	 div.growlUI h2, div.growlUI h3 {
		color: red; padding: 5px 5px 5px 45px; text-align: left
	}
</style>
<script type="text/javascript">
	function apply(){
		if($("#findpass").validationEngine('validate')){
		
				   $.ajax({
					     type: "POST",
					     async: false,
					     url:"repass/findapply",
					     dataType:"json",
					     headers: {
					          // "Accept" : "text/plain; charset=utf-8",
					           "Accept" : "text/html; charset=utf-8",
					           "Content-Type": "application/json; charset=utf-8"
					       },
					     //contentType: "application/json;charset=UTF-8",
					     data:  JSON.stringify({ 
										userId:$("#userId").val(),	
										userName:$("#userName").val(),
										corpName:$("#corpName").val(),
										contactName:$("#contactName").val(),
										contact:$("#contact").val(),
										email:$("#email").val()
									} ),
					     success: callbackDosomething
					});
		 
		}
	}
	function reject(){
		window.close();
	}
	var preccss = function(){
		$.unblockUI({onUnblock: function(){window.close();}});
	}
	function callbackDosomething( result ){
		if(result=="true"){
			$.blockUI({ message: '<h1><img src="resources/images/logo2.png" /> 找回密碼申請成功...</h1>' });
	        $('.blockOverlay').attr('title','Click to unblock').click(preccss); 
		}
		if(result=="false"){
			 $.growlUI('错误提示', '出现错误没有保存!'); 
		}
	}
	 
 /*******************************************************/
	jQuery(document).ready(function(){
	    jQuery("#findpass").validationEngine('attach');
	});
</script>
</head>

<div class="div_news2"> 
<table width="200" border="0" cellspacing="0" class="table_news">
  <tr>
  </tr>
</table>
</div>
<div class="div_style">
<table width="1000" border="0" align="center" cellspacing="0" class="table_style">
  <tr>
    <td class="td_leftmenu"><table width="1000" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td><table width="1000" border="0" cellpadding="0" cellspacing="0" class="title_bg">
            <tr>
              <td width="66" class="td_padding2"><img src="resources/images/login/zhuce_03.gif" width="56" height="14" ></td>
              <td width="14" class="td_padding2"><img src="resources/images/sub2/sub2_list_05.gif" width="4" height="14"></td>
              <td width="920" class="td_padding4"><span class="title_txt1">首页 &gt;</span> <span class="title_txt2">会员注册 </span></td>
            </tr>
        </table></td>
      </tr>
      <tr>
        <td></td>
      </tr>
      <tr>
        <td></td>
      </tr>
      <tr>
        <td class="td_hight2"></td>
      </tr>
      <tr>
        <td height="265">
		<!-- 灰色边框 -->
		
		<form name="findpass"  id="findpass" >
		<table width="1000" height="271" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="10" height="10" align="left" valign="top"><img src="resources/images/login/sub2_list_10.gif" width="10" height="10"></td>
            <td width="985" background="resources/images/login/zhuce_08.gif"></td>
            <td width="10" align="right" valign="top"><img src="resources/images/login/sub2_list_10-11.gif" width="10" height="10"></td>
          </tr>
          <tr>
            <td height="35" background="resources/images/login/zhuce_12.gif"></td>
            <td class="td_padding2" align="center">找回密码填写信息</td>
            <td background="resources/images/login/zhuce_14.gif"></td>
          </tr>
          
          <tr>
            <td height="188" background="resources/images/login/zhuce_12.gif"></td>
            <td class="td_padding7" align="center" >
              <table width="962" height="61" border="0"  cellpadding="0" cellspacing="0">
              <tr >
                <td width="476" align="left" valign="top">
                
                <table width="476" height="372" border="0"  align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="20" class="td_height1"><img src="resources/images/main/main_42.gif" width="3" height="3"></td>
                    <td width="83" class="title_txt1">会员ID</td>
                    <td width="10"><img src="resources/images/common/main_98-103.gif" width="5" height="12"></td>
                    <td width="363"><label>
                      <input name="userId" id="userId"  type="text" class="validate[required] loginweb_input1">
                    </label></td>
                    </tr>
                    
                  <tr>
                    <td class="td_height1"><img src="resources/images/main/main_42.gif" width="3" height="3"></td>
                    <td class="title_txt1">会员姓名</td>
                    <td><img src="resources/images/common/main_98-103.gif" width="5" height="12"></td>
                    <td><input name="userName" id="userName"  type="text" class="validate[required] loginweb_input1"></td>
                    </tr> 
                    
                  <tr>
                    <td class="td_height1"><img src="resources/images/main/main_42.gif" width="3" height="3"></td>
                    <td class="title_txt1">公司(個人)名称</td>
                    <td><img src="resources/images/common/main_98-103.gif" width="5" height="12"></td>
                    <td><input name="corpName" id="corpName" type="text" class="validate[required] loginweb_input1"></td>
                    </tr>
                 
                  <tr>
                    <td class="td_height1"><img src="resources/images/main/main_42.gif" width="3" height="3"></td>
                    <td class="title_txt1"><span class="title_txt1">联系负责人</span></td>
                    <td class="td_height10"><img src="resources/images/common/main_98-103.gif" width="5" height="12" ></td>
                    <td> <input type="text" name="contactName" id="contactName" class="validate[required] loginweb_input1"></input> </td>
                    </tr>
                  
                  <tr>
                    <td class="td_height1"><img src="resources/images/main/main_42.gif" width="3" height="3"></td>
                    <td class="title_txt1"><span class="title_txt1">联系方式</span></td>
                    <td class="td_height1"><img src="resources/images/common/main_98-103.gif" width="5" height="12"></td>
                    <td><input type="text" name="contact"  id="contact" class="validate[required,custom[phone]] loginweb_input1" ></input></td>
                  </tr>
                  <tr>
                    <td class="td_height1"><img src="resources/images/main/main_42.gif" width="3" height="3"></td>
                    <td class="title_txt1"><span class="title_txt1">邮箱</span></td>
                    <td class="td_height1"><img src="resources/images/common/main_98-103.gif" width="5" height="12"></td>
                    <td><input type="text" name="email"  id="email" class=" validate[required,custom[email]] loginweb_input1"></textarea></td>
                  </tr>
                </table></td>
              </tr>
            </table>
            </form>
            </td>
            <td background="resources/images/login/zhuce_14.gif"></td>
          </tr>
          <tr>
            <td height="10" align="left" valign="bottom"><img src="resources/images/login/zhuce_28.gif" width="10" height="10"></td>
            <td background="resources/images/login/zhuce_29.gif"></td>
            <td align="right" valign="bottom"><img src="resources/images/login/zhuce_30.gif" width="10" height="10"></td>
          </tr>
        </table>        </td>
      </tr>
      <tr>
        <td height="37" class="td_hight2"></td>
      </tr>
      <tr>
       
        </table></td>
      </tr>
      
      
      <tr>
        <td class="td_hight3"><table width="1000" height="26" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="173" height="26" class="quyu_txt1"><a href="#"> </a></td>
            <td width="649" align="center" valign="middle">
            	<input type="button" Onclick="javascript:apply();"  value="申请找回" >
            	<input type="button" Onclick="javascript:reject();"  value="关闭" >
            </td>
            <td width="178">&nbsp;</td>
          </tr>
        </table></td>
      </tr>
      
      
      <tr>
        <td class="td_hight3"></td>
      </tr>
    </table></td>
    </tr>
</table>
</div>

</#macro>    